package xyz.hzxiao.entity.option;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import xyz.hzxiao.base.AbstractEntity;

import java.io.Serial;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author FuXx
 * @since 2024-12-04
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("options")
public class OptionsEntity extends AbstractEntity<OptionsEntity> {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 选项名称
     */
    private String optionName;

    /**
     * 选项名称
     */
    private String optionNumber;

    /**
     * 父选项ID，为父菜单时为0
     */
    private String fatherOptionNumber;

    /**
     * 父选项ID，为父菜单时为0
     */
    @TableField(exist = false)
    private List<OptionsEntity> subOptionList;

    public static final String OPTION_NAME = "option_name";

    public static final String FATHER_ID = "father_id";

}
